/*
 * @Author: cgl
 * @Date: 2023-04-21 17:33:43
 * @LastEditors: cgl
 * @LastEditTime: 2023-04-27 10:31:30
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\basicData\institution.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询机构分页列表
export function institutionList(data) {
  return request({
    url: '/basic/institution/list',
    method: 'post',
    data,
  })
}
// 导出机构列表
export function institutionExport(data) {
  return request({
    url: `/basic/institution/export`,
    method: "post",
    data,
  });
}
// 查询机构列表
export function institutionListing(params) {
  return request({
    url: '/basic/institution/listing',
    method: 'get',
    params,
  })
}
// 获取机构详细信息
export function institutionDetail(institutionId) {
  return request({
    url: '/basic/institution/getInfo/' + institutionId,
    method: 'get'
  })
}
// 新增机构
export function institutionAdd(data) {
  return request({
    url: `/basic/institution/add`,
    method: "post",
    data,
  });
}
// 修改机构
export function institutionEdit(data) {
  return request({
    url: '/basic/institution/edit',
    method: 'post',
    data,
  })
}
// 删除机构
export function institutionDelete(institutionIds) {
  return request({
    url: '/basic/institution/remove/' + institutionIds,
    method: 'get'
  })
}